package nc;

import java.util.Scanner;

public class Q21329 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            final String s = scanner.nextLine();
            for (int i = s.length() - 1; i >= 0 ; i--) {
                System.out.print(s.charAt(i));
            }
            System.out.println();
        }
    }

}
